package com.zpp.wedding_admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 朱盼盼
 * @since 2022-12-29
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CameraLocation对象", description="")
public class CameraLocation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地点id")
    @TableId(value = "location_id", type = IdType.AUTO)
    private Integer locationId;

    @ApiModelProperty(value = "地点标签id")
    private Integer lableId;

    @ApiModelProperty(value = "地点名称")
    private String locationName;

    @ApiModelProperty(value = "地点照片")
    private String locationUrl;

    @ApiModelProperty(value = "开放时间，周几")
    private String openTime;

    @ApiModelProperty(value = "价格")
    private Integer price;

    @ApiModelProperty(value = "开放时间")
    private LocalDate fromTime;

    @ApiModelProperty(value = "关闭时间")
    private LocalDate toTime;

    @ApiModelProperty(value = "喜欢数量")
    private Integer likeNum;

    @ApiModelProperty(value = "不喜欢数量")
    private Integer unlikeNum;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;

    @ApiModelProperty(value = "标签")
    @TableField(exist = false)
    private LocationLable locationLable;

}
